package com.houzehui.service.impl;

import com.houzehui.entity.Tj;
import com.houzehui.entity.UserFund;
import com.houzehui.entity.Users;
import com.houzehui.mapper.UsersMapper;
import com.houzehui.service.UsersService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class UsersServiceImpl implements UsersService {

    @Autowired
    private UsersMapper usersMapper;

    @Override
    public int insertusers(Users users) {
        return usersMapper.insertusers(users);
    }

    @Override
    public Users list(Users users) {
        return usersMapper.list(users);
    }

    @Override
    public int insert(String id, Integer uid, Integer fid, Double price,Integer num) {
        return usersMapper.insert(id,uid,fid,price,num);
    }

    @Override
    public int update(String id) {
        return usersMapper.update(id);
    }

    @Override
    public List<UserFund> selelist(Integer uid) {
        return usersMapper.selelist(uid);
    }

    @Override
    public Double selezprice(Integer uid) {
        return usersMapper.selezprice(uid);
    }

    @Override
    public List<Tj> listtj(Integer id) {
        return usersMapper.listtj(id);
    }
}
